Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to enumerate monitoring team options in config #118

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

tnnrj
Copy link
Contributor

@tnnrj tnnrj commented Jan 15, 2025

Optionally adds the ability to provide a list of teams in config. If provided, the freeform "Monitoring team" field on a trigger will change to a required dropdown. Monitoring fields will also be hidden when monitoring priority is Off.

This will allow us to enforce team ownership of job triggers (if monitoring is on).

A future change will set the list of teams on each jobs host in chef. Piezo's behavior is unchanged if there are no teams set in config, so this is fully backwards compatible.

If the team field has a value that is not in the list of valid teams once it's added, a valid team must be selected the next time the trigger is edited.

@tnnrj tnnrj self-assigned this Jan 15, 2025
@tnnrj tnnrj force-pushed the PROD-2927-enumerate-monitoring-teams branch from dd6f772 to 6bd54ea Compare January 15, 2025 22:24
@tnnrj
Copy link
Contributor Author

tnnrj commented Jan 15, 2025

Pushed change to take team enumeration out of config, and instead record a path to a file where the teams are stored.

@tnnrj
Copy link
Contributor Author

tnnrj commented Jan 16, 2025

Addressed all feedback: 7104fb7

Ready for another review

admin/conf/application.conf Show resolved Hide resolved
admin/conf/application.conf Show resolved Hide resolved
@tnnrj tnnrj force-pushed the PROD-2927-enumerate-monitoring-teams branch from 7104fb7 to d558507 Compare January 22, 2025 18:31
@tnnrj tnnrj merged commit 1759756 into master Jan 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants